import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import UserList from '@/components/UserList'
import GameList from '@/components/GameList'
import gameLevel from '@/components/gameLevel'
import Score from '@/components/Score'

Vue.use(Router)

export default new Router({
  routes: [
    { path: '/', redirect: '/users' },
    {
      path: '/users',
      name: 'users',
      component: UserList
    },
    {
      path: '/games',
      name: 'games',
      component: GameList
    },
    {
      path: '/game_level',
      name: 'game_level',
      component: gameLevel
    },
    {
      path: '/score',
      name: 'score',
      component: Score
    }
  ]
})
